package service;

import dao.StoreMapper;
import entity.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StoreServiceImpl implements StoreService{
    @Resource
    private StoreMapper storeMapper;

    @Override
    public List<s_shop> getS_shopAll(Map<String, Object> map) {
        return storeMapper.getS_shopAll(map);
    }

    @Override
    public List<s_commodity> getS_commodityAll(Map<String, Object> map) {
        return storeMapper.getS_commodityAll(map);
    }

    @Override
    public List<s_transaction> getS_transactionAll(Map<String, Object> map) {
        return storeMapper.getS_transactionAll(map);
    }

    @Override
    public List<s_complaint> getS_complaintAll(Map<String, Object> map) {
        return storeMapper.getS_complaintAll(map);
    }

    @Override
    public int deleteS_shopById(String id) {

        return storeMapper.deleteS_shopById(id);
    }

    @Override
    public s_shop getBasicView(String ss_shop_Id) {
        return storeMapper.getBasicView(ss_shop_Id);
    }

    @Override
    public int addShop(s_shop shop) {
        return storeMapper.addShop(shop);
    }

    @Override
    public s_shop getRoomById(String ss_shop_Id) {
        return storeMapper.getRoomById(ss_shop_Id);
    }

    @Override
    public boolean updateRoom(s_shop shop) {
        return storeMapper.updateRoom(shop);
    }
}
